home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / modes / auto-show.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 30 35 3a 34 | 38 20 31 39 39 35 0a 3b | 14:05:4|8 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 6d 6f | 64 65 73 2f 61 75 74 6f |/lisp/mo|des/auto|
|00000090| 2d 73 68 6f 77 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |-show.el|.;;; ema|
|000000a0| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 31 33 |cs versi|on 19.13|
|000000b0| 20 58 45 6d 61 63 73 20 | 4c 75 63 69 64 2e 0a 3b | XEmacs |Lucid..;|
|000000c0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000d0| 69 6f 6e 20 32 2e 32 35 | 3b 20 31 2d 53 65 70 2d |ion 2.25|; 1-Sep-|
|000000e0| 39 34 2e 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |94..;;; |optimiza|
|000000f0| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|00000100| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|00000110| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|00000120| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000130| 63 73 20 31 38 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 18...|(if (and|
|00000140| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000150| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000160| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000170| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|00000180| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|00000190| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|000001a0| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|000001b0| 31 39 22 29 29 29 0a 20 | 20 20 20 28 65 72 72 6f |19"))). | (erro|
|000001c0| 72 20 22 54 68 69 73 20 | 66 69 6c 65 20 77 61 73 |r "This |file was|
|000001d0| 20 63 6f 6d 70 69 6c 65 | 64 20 66 6f 72 20 45 6d | compile|d for Em|
|000001e0| 61 63 73 20 31 39 2e 22 | 29 29 0a 0a 28 64 65 66 |acs 19."|))..(def|
|000001f0| 76 61 72 20 61 75 74 6f | 2d 73 68 6f 77 2d 6d 6f |var auto|-show-mo|
|00000200| 64 65 20 74 20 22 5c 0a | 2a 4e 6f 6e 2d 6e 69 6c |de t "\.|*Non-nil|
|00000210| 20 65 6e 61 62 6c 65 73 | 20 61 75 74 6f 6d 61 74 | enables| automat|
|00000220| 69 63 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 63 |ic horiz|ontal sc|
|00000230| 72 6f 6c 6c 69 6e 67 2c | 20 77 68 65 6e 20 6c 69 |rolling,| when li|
|00000240| 6e 65 73 20 61 72 65 20 | 74 72 75 6e 63 61 74 65 |nes are |truncate|
|00000250| 64 2e 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 76 |d..The d|efault v|
|00000260| 61 6c 75 65 20 69 73 20 | 74 2e 20 20 54 6f 20 63 |alue is |t. To c|
|00000270| 68 61 6e 67 65 20 74 68 | 65 20 64 65 66 61 75 6c |hange th|e defaul|
|00000280| 74 2c 20 64 6f 20 74 68 | 69 73 3a 0a 09 28 73 65 |t, do th|is:..(se|
|00000290| 74 2d 64 65 66 61 75 6c | 74 20 27 61 75 74 6f 2d |t-defaul|t 'auto-|
|000002a0| 73 68 6f 77 2d 6d 6f 64 | 65 20 6e 69 6c 29 0a 53 |show-mod|e nil).S|
|000002b0| 65 65 20 61 6c 73 6f 20 | 63 6f 6d 6d 61 6e 64 20 |ee also |command |
|000002c0| 60 61 75 74 6f 2d 73 68 | 6f 77 2d 6d 6f 64 65 27 |`auto-sh|ow-mode'|
|000002d0| 2e 0a 54 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |..This v|ariable |
|000002e0| 68 61 73 20 6e 6f 20 65 | 66 66 65 63 74 20 77 68 |has no e|ffect wh|
|000002f0| 65 6e 20 6c 69 6e 65 73 | 20 61 72 65 20 6e 6f 74 |en lines| are not|
|00000300| 20 62 65 69 6e 67 20 74 | 72 75 6e 63 61 74 65 64 | being t|runcated|
|00000310| 2e 22 29 0a 28 6d 61 6b | 65 2d 76 61 72 69 61 62 |.").(mak|e-variab|
|00000320| 6c 65 2d 62 75 66 66 65 | 72 2d 6c 6f 63 61 6c 20 |le-buffe|r-local |
|00000330| 27 61 75 74 6f 2d 73 68 | 6f 77 2d 6d 6f 64 65 29 |'auto-sh|ow-mode)|
|00000340| 0a 28 64 65 66 76 61 72 | 20 61 75 74 6f 2d 73 68 |.(defvar| auto-sh|
|00000350| 6f 77 2d 73 68 69 66 74 | 2d 61 6d 6f 75 6e 74 20 |ow-shift|-amount |
|00000360| 38 20 22 5c 0a 2a 45 78 | 74 72 61 20 63 6f 6c 75 |8 "\.*Ex|tra colu|
|00000370| 6d 6e 73 20 74 6f 20 73 | 63 72 6f 6c 6c 2e 20 66 |mns to s|croll. f|
|00000380| 6f 72 20 61 75 74 6f 6d | 61 74 69 63 20 68 6f 72 |or autom|atic hor|
|00000390| 69 7a 6f 6e 74 61 6c 20 | 73 63 72 6f 6c 6c 69 6e |izontal |scrollin|
|000003a0| 67 2e 22 29 0a 28 64 65 | 66 76 61 72 20 61 75 74 |g.").(de|fvar aut|
|000003b0| 6f 2d 73 68 6f 77 2d 73 | 68 6f 77 2d 6c 65 66 74 |o-show-s|how-left|
|000003c0| 2d 6d 61 72 67 69 6e 2d | 74 68 72 65 73 68 6f 6c |-margin-|threshol|
|000003d0| 64 20 35 30 20 22 5c 0a | 2a 54 68 72 65 73 68 6f |d 50 "\.|*Thresho|
|000003e0| 6c 64 20 63 6f 6c 75 6d | 6e 20 66 6f 72 20 61 75 |ld colum|n for au|
|000003f0| 74 6f 6d 61 74 69 63 20 | 68 6f 72 69 7a 6f 6e 74 |tomatic |horizont|
|00000400| 61 6c 20 73 63 72 6f 6c | 6c 69 6e 67 20 74 6f 20 |al scrol|ling to |
|00000410| 74 68 65 20 72 69 67 68 | 74 2e 0a 49 66 20 70 6f |the righ|t..If po|
|00000420| 69 6e 74 20 69 73 20 62 | 65 66 6f 72 65 20 74 68 |int is b|efore th|
|00000430| 69 73 20 63 6f 6c 75 6d | 6e 2c 20 77 65 20 74 72 |is colum|n, we tr|
|00000440| 79 20 74 6f 20 73 63 72 | 6f 6c 6c 20 74 6f 20 6d |y to scr|oll to m|
|00000450| 61 6b 65 20 74 68 65 20 | 6c 65 66 74 20 6d 61 72 |ake the |left mar|
|00000460| 67 69 6e 0a 76 69 73 69 | 62 6c 65 2e 20 20 53 65 |gin.visi|ble. Se|
|00000470| 74 74 69 6e 67 20 74 68 | 69 73 20 74 6f 20 30 20 |tting th|is to 0 |
|00000480| 64 69 73 61 62 6c 65 73 | 20 74 68 69 73 20 66 65 |disables| this fe|
|00000490| 61 74 75 72 65 2e 22 29 | 0a 28 66 73 65 74 20 27 |ature.")|.(fset '|
|000004a0| 61 75 74 6f 2d 73 68 6f | 77 2d 74 72 75 6e 63 61 |auto-sho|w-trunca|
|000004b0| 74 69 6f 6e 70 20 23 5b | 6e 69 6c 20 22 08 ae 88 |tionp #[|nil "...|
|000004c0| 09 ad 85 c2 20 c3 20 57 | 87 22 20 5b 74 72 75 6e |.... . W|." [trun|
|000004d0| 63 61 74 65 2d 6c 69 6e | 65 73 20 74 72 75 6e 63 |cate-lin|es trunc|
|000004e0| 61 74 65 2d 70 61 72 74 | 69 61 6c 2d 77 69 64 74 |ate-part|ial-widt|
|000004f0| 68 2d 77 69 6e 64 6f 77 | 73 20 77 69 6e 64 6f 77 |h-window|s window|
|00000500| 2d 77 69 64 74 68 20 66 | 72 61 6d 65 2d 77 69 64 |-width f|rame-wid|
|00000510| 74 68 5d 20 32 20 22 5c | 0a 54 72 75 65 20 69 66 |th] 2 "\|.True if|
|00000520| 20 6c 69 6e 65 20 74 72 | 75 6e 63 61 74 69 6f 6e | line tr|uncation|
|00000530| 20 69 73 20 65 6e 61 62 | 6c 65 64 20 66 6f 72 20 | is enab|led for |
|00000540| 74 68 65 20 73 65 6c 65 | 63 74 65 64 20 77 69 6e |the sele|cted win|
|00000550| 64 6f 77 2e 22 5d 29 0a | 28 66 73 65 74 20 27 61 |dow."]).|(fset 'a|
|00000560| 75 74 6f 2d 73 68 6f 77 | 2d 6d 6f 64 65 20 23 5b |uto-show|-mode #[|
|00000570| 28 61 72 67 29 20 22 08 | ac 84 09 3f aa 85 c2 08 |(arg) ".|...?....|
|00000580| 21 c3 56 89 11 87 22 20 | 5b 61 72 67 20 61 75 74 |!.V..." |[arg aut|
|00000590| 6f 2d 73 68 6f 77 2d 6d | 6f 64 65 20 70 72 65 66 |o-show-m|ode pref|
|000005a0| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|000005b0| 20 30 5d 20 32 20 22 5c | 0a 54 75 72 6e 20 61 75 | 0] 2 "\|.Turn au|
|000005c0| 74 6f 6d 61 74 69 63 20 | 68 6f 72 69 7a 6f 6e 74 |tomatic |horizont|
|000005d0| 61 6c 20 73 63 72 6f 6c | 6c 20 6d 6f 64 65 20 6f |al scrol|l mode o|
|000005e0| 6e 20 6f 72 20 6f 66 66 | 2e 0a 57 69 74 68 20 61 |n or off|..With a|
|000005f0| 72 67 2c 20 74 75 72 6e | 20 61 75 74 6f 20 73 63 |rg, turn| auto sc|
|00000600| 72 6f 6c 6c 69 6e 67 20 | 6f 6e 20 69 66 20 61 72 |rolling |on if ar|
|00000610| 67 20 69 73 20 70 6f 73 | 69 74 69 76 65 2c 20 6f |g is pos|itive, o|
|00000620| 66 66 20 6f 74 68 65 72 | 77 69 73 65 2e 22 20 22 |ff other|wise." "|
|00000630| 50 22 5d 29 0a 28 66 73 | 65 74 20 27 61 75 74 6f |P"]).(fs|et 'auto|
|00000640| 2d 73 68 6f 77 2d 6d 61 | 6b 65 2d 70 6f 69 6e 74 |-show-ma|ke-point|
|00000650| 2d 76 69 73 69 62 6c 65 | 20 23 5b 28 26 6f 70 74 |-visible| #[(&opt|
|00000660| 69 6f 6e 61 6c 20 69 67 | 6e 6f 72 65 2d 61 72 67 |ional ig|nore-arg|
|00000670| 29 20 22 08 ad e4 c1 20 | ad e0 c2 20 70 9a ad da |) ".... |... p...|
|00000680| 69 1b c4 20 1d c6 20 0d | c7 56 ab 83 c8 aa 81 c9 |i.. .. .|.V......|
|00000690| 5a 1e 5c 6e 0d 0e 5c 6e | 5c 5c 1e 0b 0b 0e 0c 57 |Z.\n..\n|\\.....W|
|000006a0| ab 90 0b c6 20 57 ab 8a | 0d c7 56 ab 85 cd 0d 21 |.... W..|..V....!|
|000006b0| aa aa 0b 0d 57 ab 8a cd | 0d 0b 5a 0e 0e 5c 5c 21 |....W...|..Z..\\!|
|000006c0| aa 9b 0b 0e 0b 56 ac 8a | 0b 0e 0b 55 ad 8f 6c 3f |.....V..|...U..l?|
|000006d0| ad 8b cf 0e 0e 0b 0d 0e | 5c 6e 5c 5c 5a 5c 5c 21 |........|\n\\Z\\!|
|000006e0| 2c 87 22 20 5b 61 75 74 | 6f 2d 73 68 6f 77 2d 6d |,." [aut|o-show-m|
|000006f0| 6f 64 65 20 61 75 74 6f | 2d 73 68 6f 77 2d 74 72 |ode auto|-show-tr|
|00000700| 75 6e 63 61 74 69 6f 6e | 70 20 77 69 6e 64 6f 77 |uncation|p window|
|00000710| 2d 62 75 66 66 65 72 20 | 63 6f 6c 20 77 69 6e 64 |-buffer |col wind|
|00000720| 6f 77 2d 68 73 63 72 6f | 6c 6c 20 73 63 72 6f 6c |ow-hscro|ll scrol|
|00000730| 6c 20 77 69 6e 64 6f 77 | 2d 77 69 64 74 68 20 30 |l window|-width 0|
|00000740| 20 32 20 31 20 77 2d 77 | 69 64 74 68 20 72 69 67 | 2 1 w-w|idth rig|
|00000750| 68 74 2d 63 6f 6c 20 61 | 75 74 6f 2d 73 68 6f 77 |ht-col a|uto-show|
|00000760| 2d 73 68 6f 77 2d 6c 65 | 66 74 2d 6d 61 72 67 69 |-show-le|ft-margi|
|00000770| 6e 2d 74 68 72 65 73 68 | 6f 6c 64 20 73 63 72 6f |n-thresh|old scro|
|00000780| 6c 6c 2d 72 69 67 68 74 | 20 61 75 74 6f 2d 73 68 |ll-right| auto-sh|
|00000790| 6f 77 2d 73 68 69 66 74 | 2d 61 6d 6f 75 6e 74 20 |ow-shift|-amount |
|000007a0| 73 63 72 6f 6c 6c 2d 6c | 65 66 74 5d 20 35 20 22 |scroll-l|eft] 5 "|
|000007b0| 5c 0a 53 63 72 6f 6c 6c | 20 68 6f 72 69 7a 6f 6e |\.Scroll| horizon|
|000007c0| 74 61 6c 6c 79 20 74 6f | 20 6d 61 6b 65 20 70 6f |tally to| make po|
|000007d0| 69 6e 74 20 76 69 73 69 | 62 6c 65 2c 20 69 66 20 |int visi|ble, if |
|000007e0| 74 68 61 74 20 69 73 20 | 65 6e 61 62 6c 65 64 2e |that is |enabled.|
|000007f0| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 6f |.This fu|nction o|
|00000800| 6e 6c 79 20 64 6f 65 73 | 20 73 6f 6d 65 74 68 69 |nly does| somethi|
|00000810| 6e 67 20 69 66 20 60 61 | 75 74 6f 2d 73 68 6f 77 |ng if `a|uto-show|
|00000820| 2d 6d 6f 64 65 27 20 69 | 73 20 6e 6f 6e 2d 6e 69 |-mode' i|s non-ni|
|00000830| 6c 0a 61 6e 64 20 6c 6f | 6e 67 6c 69 6e 65 73 20 |l.and lo|nglines |
|00000840| 61 72 65 20 62 65 69 6e | 67 20 74 72 75 6e 63 61 |are bein|g trunca|
|00000850| 74 65 64 20 69 6e 20 74 | 68 65 20 73 65 6c 65 63 |ted in t|he selec|
|00000860| 74 65 64 20 77 69 6e 64 | 6f 77 2e 0a 53 65 65 20 |ted wind|ow..See |
|00000870| 61 6c 73 6f 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |also the| command|
|00000880| 20 60 61 75 74 6f 2d 73 | 68 6f 77 2d 74 6f 67 67 | `auto-s|how-togg|
|00000890| 6c 65 27 2e 22 20 6e 69 | 6c 5d 29 0a 28 62 79 74 |le'." ni|l]).(byt|
|000008a0| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 5c 22 88 c0 c3 |e-code "|...\"...|
|000008b0| c2 c4 23 88 c5 c6 21 87 | 22 20 5b 61 64 64 2d 68 |..#...!.|" [add-h|
|000008c0| 6f 6f 6b 20 70 6f 73 74 | 2d 63 6f 6d 6d 61 6e 64 |ook post|-command|
|000008d0| 2d 68 6f 6f 6b 20 61 75 | 74 6f 2d 73 68 6f 77 2d |-hook au|to-show-|
|000008e0| 6d 61 6b 65 2d 70 6f 69 | 6e 74 2d 76 69 73 69 62 |make-poi|nt-visib|
|000008f0| 6c 65 20 63 6f 6d 69 6e | 74 2d 6f 75 74 70 75 74 |le comin|t-output|
|00000900| 2d 66 69 6c 74 65 72 2d | 66 75 6e 63 74 69 6f 6e |-filter-|function|
|00000910| 73 20 74 20 70 72 6f 76 | 69 64 65 20 61 75 74 6f |s t prov|ide auto|
|00000920| 2d 73 68 6f 77 5d 20 34 | 29 0a |-show] 4|). |
+--------+-------------------------+-------------------------+--------+--------+